const router = require("express").Router();

router.get("/home",(req,res)=>{
  // res.send("我是首页")

  res.render('home',{
    arr:["唐僧","白骨精","蜘蛛精","玉兔精"],
    str:"你好",
    sign:"定位ID女王ID我",
    richStr: `
      <div>
        <h4 style="color:blue"> 哈哈哈 </h4>
      </div>
    `
  });
})

router.post("/home",(req,res)=>{
  res.send("home post")
})

module.exports = router